<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHelpAnswersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_help_answers', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('status')->default(1)->comment('是否使用1使用0禁用');
            $table->integer('help_cate_id')->default(0)->comment('分类ID');
            $table->string('title', 100)->comment('标题');
            $table->string('content', 11)->comment('内容');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_help_answers');
    }
}
